import request from '@/utils/request'

export function getTopicsPage(params) {
    return request({
        url: '/admin/topics/page',
        method: 'get',
        params
    })
}

export function getTopicsList(params) {
    return request({
        url: '/admin/topics/list',
        method: 'get',
        params
    })
}

export function addTopics(data) {
    return request({
        url: '/admin/topics/add',
        method: 'post',
        data: data
    })
}

export function editTopics(data) {
    return request({
        url: '/admin/topics/update',
        method: 'post',
        data: data
    })
}

export function deleteTopics(topicsId) {
    return request({
        url: '/admin/topics/delete/' + topicsId,
        method: 'get'
    })
}

